package jn.chen.utils.interfaceController.controller;

import jn.chen.utils.interfaceController.domain.User;
import jn.chen.utils.interfaceController.util.R;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: UserController
 * @author: chenLin
 * @version: 1.0.0
 * @description:
 * @date: 24/1/15 015 14:47
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @PostMapping("/save")
    public R save(@RequestBody User user) {
        return R.ok(user);
    }
}
